<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var str1 = "富各庄村"
        str_utf8 = encodeURI(str1)
        console.log(str_utf8)
        //console.log(decodeURI(str_utf8))
        ////alert(str_utf8)
        window.location.href="http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/register/user.html&data="+ str1
    </script>
</body>

</html>